<?php
class Money_Widget_UserBalanceController extends Engine_Content_Widget_Abstract
{
  public function indexAction()
  {
    $viewer = Engine_Api::_()->user()->getViewer();
    
    if(!$viewer || !$viewer->getIdentity()){
        return $this->setNoRender();
    }
    
   $this->view->money = $money = Engine_Api::_()->getDbtable('money', 'money')->getMoney();
  }
}
